package com.framework.base.proxy;

/**
 * @author chaolong.jin
 * @description
 * @date 2019/05/05 09:54
 */
public class ProxyTest {

    public static void main(String[] args) {
        UserService userService=new UserServiceImpl();
       /* UserService proxy= (UserService) new UserServiceProxy().getInstance(userService);
        proxy.saveUser();*/
       UserService proxy= (UserService) new CglibProxy(userService).getInstance();
       proxy.saveUser();
    }
}
